package com.order.hit.crossover.platform.common.bean.order;

import com.order.hit.crossover.platform.common.bean.Good;
import com.order.hit.crossover.platform.common.bean.Store;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author Lei
 * @version 0.1
 * @date 2020/9/8
 * 表示 拼单的单子
 */


@Getter
@Setter
@ToString
public class Fightorder {

    private Long id;

    // 拼单的商店
    private Store store;

    //拼单发起用户
    private int userId;

    private String userName;

    private FightOrderState fightOrderState;

    // 拼单的参与人数
    private int userNum;

    // 拼单的现阶段人数
    private  int nowNum;

    // 参与者用户的id
    private List<Integer> participaters;

    // 拼单物品
    private Good good;

    // 拼单价格,表示为每个人的价格
    private double price;
    private int goodNumber;

    private Date start_time;
    private Date end_time;
}
